import fetch from '@/utils/fetch'



export function getSellerInfo(id) {
  return fetch({
    url: '/get/seller/info',
    method: 'get',
     params: {
     id
    }
  })
}

export function getUserInfo(id) {
  return fetch({
    url: '/get/chat/user/info',
    method: 'get',
     params: {
     id
    }
  })
}

export function getSellerServer(id) {
  return fetch({
    url: '/get/seller/server',
    method: 'get',
     params: {
     id
    }
  })
}



export function addSellerSupport(support) {
  return fetch({
    url: '/add/seller/support',
    method: 'post',
     data: {
      support
    }
  })
}


export function delSellerSupport(id) {
  return fetch({
    url: '/delete/seller/support',
    method: 'get',
     params: {
     id
    }
  })
}

  export function delSellerImg(id) {
  return fetch({
    url: '/delete/seller/img',
    method: 'get',
     params: {
     id
    }
  })
}


export function addSellerImg(img) {
  return fetch({
    url: '/add/seller/img',
    method: 'post',
     data: {
      img
    }
  })
}


export function updateSeller(content,addressInfo,infos) {
  return fetch({
    url:'/update/seller',
    method: 'post',
     data: {
      content,
      addressInfo,
      infos
    }
  })
}


export function updateSellerInfo(infos) {
  return fetch({
    url:'/update/seller/info',
    method: 'post',
     data: {
      infos
    }
  })
}






   
